<template>
	<view class="option pages">
		<view class="options" v-for="item in list" :key="item.id" @tap="open(item)">
			<view class="options_name">
				{{item.name}}
			</view>
			<view class="options_forward">
				<uni-icons type="forward" size="20" color="#bebecc"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					id: 1,
					name: this.$t('recharge.recharge.Accounts'),
					path: "/pages/shop/recharge/transfer"
				}, {
					id: 2,
					name: this.$t('recharge.recharge.Pay'),
					path: "/pages/shop/recharge/pay"
				}]
			}
		},
		methods: {
			open(e) {
				uni.navigateTo({
					url: e.path
				})
			}
		},
		onShow() {
			uni.setNavigationBarTitle({
				title: this.$t('list.Chong')
			})
		}
	}
</script>

<style lang="scss" scoped>
	.option {
		width: 100%;
		height: 100vh;
		background: #f5f5f9;
		font-size: 28rpx;

		.options {
			width: 100%;
			height: 120rpx;
			padding: 0 40rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			background: #fff;
			border-top: 2rpx solid #f5f5f9;

			.options_name {
				font-size: 28rpx;
				font-weight: 600;
			}

			&.options:first-child {
				border-top: 2rpx solid transparent;
			}
		}
	}
</style>